﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Public
{
    public class Invoice
    {
        private int invoiceId;
        private int cardId;

        public int CardId
        {
            get { return cardId; }
            set { cardId = value; }
        }
        private int cashierId;

        public int CashierId
        {
            get { return cashierId; }
            set { cashierId = value; }
        }
        public int InvoiceId
        {
            get { return invoiceId; }
            set { invoiceId = value; }
        }
        private LoyaltyCard loyaltyCard;

        public LoyaltyCard LoyaltyCard
        {
            get { return loyaltyCard; }
            set { loyaltyCard = value; }
        }
        private User user;

        public User User
        {
            get { return user; }
            set { user = value; }
        }
        private DateTime paymentDate;
        private float totalPrice;

        public Invoice() { }

        public Invoice(LoyaltyCard lc, User u)
        {
            this.loyaltyCard = lc;
            this.user = u;
        }

        public float TotalPrice
        {
            get { return totalPrice; }
            set { totalPrice = value; }
        }

        public DateTime PaymentDate
        {
            get { return paymentDate; }
            set { paymentDate = value; }
        }
    }
}
